package cn.geodata.database;

import java.io.Serializable;

public class DataObject implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2508354334037685625L;
	
	private String id;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public DataObject(){
		this.id = null;
	}

	@Override
	public boolean equals(Object arg0) {
		if (arg0 instanceof DataObject) {
			DataObject _data = (DataObject) arg0;
			if(this.getId() != null && this.getId().equals(_data.getId())){
				return true;
			}
		}
		return super.equals(arg0);
	}
}
